<template>
    
<div>
  <h1>修改宠物主人信息</h1>
<el-form ref="form" :model="form" label-width="80px" :inline="true" >
<el-row>
  <e-col :span="12">
  <el-form-item label="昵称:"> 
  <el-input v-model="form.name"></el-input>
  </el-form-item>
  </e-col>

<e-col :span="12">
<el-form-item label="真实姓名:"> 
  <el-input v-model="form.name"></el-input>
</el-form-item>
</e-col>

</el-row>


<el-row>
  <e-col :span="12">
  <el-form-item label="区域:"> 
  <el-input v-model="form.name"></el-input>
  </el-form-item>
  </e-col>
<e-col :span="12">
<el-form-item label="手机号:"> 
<el-input v-model="form.name"></el-input>
</el-form-item>
</e-col>
</el-row>

<el-row>
  <e-col :span="12">
  <el-form-item label="送货地址:"> 
  <el-input v-model="form.name"></el-input>
  </el-form-item>
  </e-col>
  </el-row>

  <el-row>
<e-col :span="12">
<el-form-item label="头像:" style="margin-right: -100px; "> 
  <el-upload
 class="avatar-uploader"
 action="C:\Users\HP\Desktop\touxiang"
 :show-file-list="false"
 :on-success="handleAvatarSuccess"
 :before-upload="beforeAvatarUpload"
 >
 <img v-if="imageUrl" :src="imageUrl" class="avatar">
 <i v-else class="el-icon-plus avatar-uploader-icon" style="margin-top:50%"></i>
 </el-upload>
 
 
 
 
</el-form-item>
</e-col>
</el-row>

  <div>
    <el-button type="primary" @click="onSubmit">修改</el-button>
    <el-button type="primary" @click="onSubmit">返回</el-button>
  </div>


</el-form>


</div>
</template>
<script>
  export default {
    data() {
      return {
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      },

    }
  }
</script>

<style>
  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }
  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }
</style>
